package com.hb.C_Lambda表达式和集合.高阶函数.partition

fun main() {
    val numbers = listOf(1, 3, -4, 2, -11)
    val (positive, negative) = numbers.partition { it > 0 }
    positive.forEach(::println)
    println("----")
    negative.forEach(::println)
}